/**
 * 
 */
package org.cyhz.main;

import java.sql.SQLException;

import org.cyhz.standardize.service.AutoInfoUtil;
import org.cyhz.standardize.service.MainServiceFactory;
import org.cyhz.standardize.service.StandardizeResources;
import org.cyhz.util.Log;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @Title: MainEntrance.java
 * @Package org.cyhz.main
 * @author Corleone
 * @date 2013年11月18日 下午2:18:37
 * @version V1.0
 */
public class MainEntrance {

	@SuppressWarnings("resource")
	public static void main(String[] args) throws SQLException {

		Log.info("start ....................");

		ClassPathXmlApplicationContext ac = null;
		ac = new ClassPathXmlApplicationContext("applicationContext.xml");

		Log.info("read define file....................");
		// 初始化定义文件
		StandardizeResources.init();

		System.out.println(AutoInfoUtil.class);

		// 执行标准化
		MainServiceFactory service = (MainServiceFactory) ac
				.getBean("mainServiceFactory");
		service.start();

		Log.info("finish .......................");
	}
}